# 循环

# repeat 循环 重复执行相同代码
v <- c("Hello","Loop");
cnt <- 2;

repeat{
    print( v );
    cnt <- cnt +1;
    if( cnt > 5 ){
        break
    }
};

# while 循环
v <- c("hello","while");
cnt <- 2
while( cnt <7 ){
    print( v );
    cnt <- cnt + 1
}

# for 循环
v <- LETTERS[1:6];
for( i in v ){
    print( i );
}

# next 
v <- LETTERS[1:7];
for( i in v ){
    
    if( i == "D"){
        
        next
    }
    print( i );
    

}

